from django.conf import settings
from django.core.mail import send_mail

from libs.yuntongxun.sms import CCP
from celery_tasks.main import app

@app.task(bind=True ,name="send_verfiy_email")
def send_verfiy_email(self ,verfiy_url ,email):
    send_mail(subject="请点击验证,来自美多商城",
              message=verfiy_url,
              from_email=settings.EMAIL_FROM,
              recipient_list=[email])